Minor Filesystem cleanup

Added wildcard support to the Filesystem search thus allowing us to retire another two global functions in lib.php