Remove a needless comment
Add a missing blank line
Use "URI.join" instead of "File.join"

Because target is a URI.
Add test