> Just move the check inside writeDeps (e.g. enforce(exe, "Executable location is not specified");).

If I do this I have to take care again about the added paths to the target, which is really annoying for something probably nobody will ever use.