[fix #3] avoid consecutive slashes

two consecutive slashes in an URI cause problems under windows. If the
root directory is left empty, do not happen an extra slash to the root
URI, which should make it work on all platforms

fixes #3