Update dependencies if the folder exists.