build: pass .d file name to scripts/make_device_config.sh, fix makefile target