Attempt to fix the cfg and hw file path logic.