fix bug with output path relative root