refactor File.expand_path