updated file index generator (fixes issues with newer versions of the linux file utilities)