r26291: build: make use of output::add_dir_str() to avoid ugly foo/../bla pathes