add slash for directory if user didn't enter