Exit if --directory is invalid.
Recognise JPEGmini Lite, fixes #41.