Use the open command instead of mate

This way we do not rely on ‘mate’ being installed and/or findable via the PATH.