Added control for valid target

This PR resolves the fatal error

    PHP Fatal error:  Call to a member function get() on a non-object in /home/dymissy/www/sd/Idephix/src/Idephix/Extension/Project/Project.php on line 30

printed out when a rsync command is launched without <code>--env</code> argument.