Starting bugfix for chdir problem