More host updates:

- implement mkdtemp(), maybe_mkdir(), write(), getcwd()
- remove write_temporary_file_and_return_name()
Make remaining parser tests work as integration tests.
fix bug w/ not exiting properly after checking syntax