fix bug in testExistingProgramsIfFolderExists