Adding env type detection to linux