Bugfix issue #5: Checking the current branch before try rebase