Fix makefiles to use DEVICE_FOLDER instead of COMMON_FOLDER.