Fix incorrect variable usage and quoting.
Merge pull request #17 from dak180/topic/selfupdate

Fix incorrect variable usage and quoting.