Expand variables in if statements (fixes #212)
Created by: fcapano
Added expansion of variables when evaluating if statements. Undefined variables will evaluate to empty strings, thus the equality of two undefined variables will evaluate to True. This is the same behaviour of other shells such as Bash, Sh, Zsh, ...