Support memory limits (default 100MB)
Do not hard-code script_dir in utilities.safeexec