Modified the option to check if branch is dirty.