now works!

also use boost to chdir instead of maintaining my own