Added testing to build system
minor changes to build system
Allow user to specify working directory
Major changes to command snippets

- now more intelligently form sudo command
- works with older Glibs with no functional change
- waits for child process and collects output