Can `File.join` do the same job as these three lines?