Adding Unity detection and some sanitation for shell detection. Thanks defile.