Fixed invalid argument for GNU find

Apparently GNU find does not support the argument "-type file", so I changed it to -type f which should work for the BSD version and the GNU version.