added os.getenv and os.setenv; cleaned up and patched redirect parsing; added variable expansion and groundwork for further stuff to shell (contributed by @Wobbo)
moved path info to os env stuff; fixed a *really* stupid bug in path resolving in the shell
moved some more stuff to os env; better handling of os.exit in shell.execute (and lua interpreter)