Remove possible unary operator errors

- Add quotes around parameter-based variables ($1, $2) so that
  their omission did not result in unary operator expected errors
- Add a check for the number of parameters for the "checkout"
  command