Fix check for local modifications