disable-branch-fixup: move into a script file

Several times I have seen disabling swap fail  with a while loop error
Moving this into it's own script fixes it.