add modification dir to install check

some server configurations prevent the script from writing to modification folder, which causes errors when attempting to install ocmod