Added getSuffix method

This method will prevent errors being thrown if the file has no suffix
when running the method scanAndDeleteOldFiles.  This is especially
apparent on Linux.