PHP executable path can be empty.
Language sort must be by main flag first.
Merge pull request #8 from alexkvak/php-path-and-languages-order

PHP executable path can be empty. Active languages have been ordered