Add `check` command

Move `--wait` option from build to check command