Variables support

Fixed Stub installer and added support of the variables substitution