fixes #11 (Can the root argument be optional?)

now the root argument is optional. In case kit is not present the tool will try to figure out from the url argument. If the url is an URI it will use its host, if it is a file based "thingy" it will be the same as the url.