Fixes #383. Do not use os.path.join when constructing URLs

@jamiesnape PTAL