fix rakefile branch check