Add / at the end of output directory if not provided