Added 'utils.sh' and moved common functions and variables there