* fix potential issues when file paths are passed in and not folders