Fixes #4599: prevent interactive questions, and don't allow untrusted pa...

...ckage