Fix open with issues on OS X