removed trailing slash from directory in path