bug #307 fixes #301 $remoteFilename not defined (kbsali)

This PR was merged into the 0.4.x-dev branch.

Discussion
----------

fixes #301 $remoteFilename not defined

This makes the self-update command to fail (not only on MAC as #301 mentions)

Commits
-------

7e56736 fixes #301  not defined
fixed CS
really fixes selfupdate command (#301)