Fix bug in parser which resulted in incorrect output directory when a relative path was configured.