Use switch to select command
checkGemlock -> checkGemlockFile