added dirmod and discover to env path