Changed getAllFileNames to have 1.1.12 compatibility