Fix paths limited to 255 chars. Fix get_sandbox_dir() returning a string with '(null)' in it if we did not call sandbox with absolute path.
Changed paths: