Run passenger-install-apache2-module to grab mod_passenger.so location and use it as a condition to run installation of the module.