Fix build script directory cleanup.