Fix check_env to work with Python 3 by skipping LooseVersion (ok for current astropy versioning)