Fixed bug where root folder was not getting matched