Detect platform - Linux/OSX