Append the file name with ~/ in map path.