Attempt to make it work on both lin and mac