Fix bug in building output directories.