fixed the ending of the current directory to have and trailing slash