Minor bug fix

Extra slash would be added to output directory path because of
conditions.