move "clean" steps into a separate script, called by the build script as
its first step