Checks that is in the correct directory