make sure check-cmd is executable