Set proper action role on Mac OSX
Fix platform detection