Fix the parser when path is empty

For urls like `http://vimeo.com/69912181` or `http://jolicode.com/goodies`, the url parser was adding two `//` before the file name. This is a fix for this bug as well as new tests for it.