fix missing OPT in OPTSTRING; fix cleaning up of tmpfiles; remove useless options