shortenPath added, minor changes to cmakeLists