buildsystem: Fix external deploy and autocompletion

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>