check env in before_install