get dialect from env when not specified

this fixes #424