Fix OSX get_binary logic