Fix bug introduced cleaning up MRJAdapter on MacOSX