Introduce working dir setting
Incorporate working dir into initialization

Also, old bug involving escaping spaces twice