Change error message.

Error message should not end with dot.
Get rid of global cask-file variable.