- Fixed cut-and-paste error. - See http://savannah.gnu.org/patch/?7576 for further details. - Use 'ls -r' rather than non-portable tool 'tac'. - Simplify filepattern in ls expression so dylib (on OSX) are also detected.