Customize the base output directory.

Further details at issue #182.

In this PR by default it keep the current working directory as it was.