Add forward slash to input path if not present.