fixed bug when providing just a folder name and not a complete path