build script properly cleans up after itself