Respect TARGET_DIR when building.