Make Ubuntu/MacOSX logic work. It's cheesy, but functional.