Fix bug when spacing analysis run from different directory than output directory.