add modification directory to install check

Some server configurations prevent the script from writing to modification dir, which causes errors when attempting to install ocmods