          # File lib/rake.rb, line 2354
    2354:     def find_rakefile_location
    2355:       here = Dir.pwd
    2356:       while ! (fn = have_rakefile)
    2357:         Dir.chdir("..")
    2358:         if Dir.pwd == here || options.nosearch
    2359:           return nil
    2360:         end
    2361:         here = Dir.pwd
    2362:       end
    2363:       [fn, here]
    2364:     ensure
    2365:       Dir.chdir(Rake.original_dir)
    2366:     end