Fixes some errors I discovered when setting up a new build server.
I am not so happy with the lessc check as it duplicates the regular dependency check above. However, it has to happen later in the file since arguments.sh is just run there. Only this evaluates the build_env parameter.
@reinhard, do you have a better idea? Could we run arguments.sh earlier?