def locate_file name
      Settings.instance.target_dir.each do |dir|
        Dir.chdir File.expand_path(dir) do
          return File.expand_path(name) if File.exists? name
        end
      end
      raise TargetLoadError.new("Couldn't find file #{name}")
      nil
    end
def locate_file name
      Settings.instance.target_dir.each do |dir|
        Dir.chdir File.expand_path(dir) do
          return File.expand_path(name) if File.exists? name
        end
      end
      raise TargetLoadError.new("Couldn't find file #{name}")
      nil
    end
Locate a file with name in one of the target_dirs