Calling tool from postinstall script causes Terminal to launch