print directory file system is mounted on; add missing return(0) to check()