Add a sanity check for php version and paths with spaces.