Fix paths in the limited shell.
Fix permissions and paths.