diff --git a/build b/build
index 8c9f8f9ced94dae681790bdd5b47c2e76a5d5cba..0d9fcf465510c18566e3f4909c3f7f5722a713aa 100755
--- a/build
+++ b/build
@@ -43,7 +43,10 @@ main()
 {
 	xx_ id -u 1>/dev/null 2>/dev/null
 	[ $# -lt 1 ] && fail "Too few arguments. Try: ${0} help"
-	[ "${1}" = "dependencies" ] && xx_ install_packages $@ && lbmk_exit 0
+	if [ "${1}" = "dependencies" ]; then
+		xx_ install_packages $@
+		lbmk_exit 0
+	fi
 
 	initialise_command $@ && shift 1
 
@@ -59,6 +62,8 @@ initialise_command()
 {
 	[ "$(id -u)" != "0" ] || fail "this command as root is not permitted"
 
+	check_project
+
 	case "${1}" in
 	help) usage ${0} && lbmk_exit 0 ;;
 	list) items "${buildpath}" && lbmk_exit 0 ;;
diff --git a/include/err.sh b/include/err.sh
index 33246d12a27a061d10e0c03c6fbcc53efc9886c1..595d6c772ab5194573bb94828e0fefa15f7e1e17 100755
--- a/include/err.sh
+++ b/include/err.sh
@@ -78,5 +78,3 @@ err()
 	printf "ERROR %s: %s\n" "${0}" "${1}" 1>&2
 	exit 1
 }
-
-check_project