Make the root directory non mandatory
Use different regexes for Windows and *nix systems