update build system to clean old files