[build] Allow user-defined overrides
[build] Allow user-defined overrides

Check if a variable is defined before trying to find programs or
executing shell commands.

agdsn/hades,agdsn/hades,agdsn/hades,agdsn/hades,agdsn/hades