Fixed target dir paths

Since relatives paths are used to configure it makes sense to have a `cd` context manager with the target_dir.