Fix for sorting files in 'data' dir when non-integer filenames exist

On NFS it is possible that files named like '.nfsXXXXX' are created
when a file is removed while it is still opened by another process.
With this fix, all files under data/ with file names that are not integers
are ignored so that int() works as expected.