fixed bad error message when directory not found
added support of multiple directories
added sbin path to \$PATH

This is necessary for php-fpm