Fixed some bugs related to parsing file arguments and using RTesseract