fix a problem in passenger and add protection for potential issues in greyhole conf