use Perl::OSType for os detection
_emit_result is now a private method