Ensure that php mods directory exists