Cleaner timezone parsing for Linux and add support for Macs