Remove nginx requirement.
Fix regex for php version detection.