build: deps: Parse cmd flag and dep file

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>