Make the script work under azure using more variables