nginx: fix passenger detection and module location

--root changed to an ini file but the check was looking for a directory

Closes #25743.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>