Fixes to checking whether a path is a file or folder
Bump version number for RC2