Fixed bug if file was directly in root dir