updating dependencies, add trailing slash to directories if they aren't present