Fixed bug in loop by replacing the variable.
Added possibility to define the mailcow branch by an environment variable to be able to bypass input.