PHP executable path can be empty.

Language sort must be by main flag first.