Monkey path PhusionPassenger only when available

Usually, `defined? PhusionPassenger` is used to find out if the
process is running inside the PhusionPassenger. Without this patch it
looks like the it's always running in passenger mode