Support rm parameter for build