Automatic chdir

As promised I fixed the feature to actually work fine, fixed the repo, and also completed the documentation.

I thought the makeshift_root doesn't have to be a global variable, however I didn't touch the documentation on that matter -- if you decide not to keep this change, it does not brake the other functionality.