Don't print out directory changing when run from makefile
Add get_search_dir function
Add launch_process function
Build environment variables on heap
Generate config last before building code and fix some warnings
Cleanup runcontrol allocations on exit