check if dir is mounted first