add condition to check if root user contrib/scripts/*