Expand system variables Unix style

WWW: https://github.com/sayanarijit/expandvars
