global: fix for before_script and env variables

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>