Move unicorn function out of OSX conditional