check for uncommitted changes before switching to master branch