Use OPENEDX_RELEASE instead of release branch if specified

@clytwynec Is this what you were looking for?
I prefer extra if statements to inscrutable shell syntax personally, but this works.