Fix bug #35. prepare command now works fine with TARGET_BRANCH defined.