Use $os instead of hardcoding "mac"