Fix `pretest` command to work with build CI