Added protected againt attempting to submit when a subdirectory is mounted