Do more aggressive env detection for pry check