Define base_dir as a variable

So it can be used in the other variables and maybe
changed.