Add autoenv role (fully cross-platform compatible)