if the user gives an invalid filetype, the script throws an error instead of continuing with the first ipa in the working directory.  Fixed #32