Remove -l parameter from su.  Changed branch to real branch

The -l switch in su causes the CWD to be changed to the users home directory.  if this is different to the repo path git commands fail.

some git commands where still using ${branch} instead of ${real_branch}.  this caused failures if no branch was specified