Improve project root and workspace refreshing