added support for removing extraneous files during the build