fixed bugs in ospfs_dir_readdir and minor syntax errors