Fixed target check

Hi, lime-build didn't stops the user when a non existent target is used, as reported here:
https://github.com/libre-mesh/lime-build/issues/1
This fixes.