cmd: fix build on travis

Some bad behavior on Go 1.0.3's req.URL.Path :-)
cmd: refactor joinWithUserDir function

It does not need to return two values anymore.