Fix os_bmfs_file_query bug
Add an internal BMFS query function