Fixed two bugs: unquote urls and better extraction of root dir
Merge pull request #2 from cacol89/master

Fixed two bugs: url unquoting and better analysis of root dir