fix bug with finding module when the -m key is passed