ScriptElement does not use Sandbox.get_directory. It works using it with remote execution. Fixes #850