really fixes selfupdate command (#301)

sorry, #307 actually did not fix the issue.
I tried to create a test for the command, but
1) it slows down considerably the test suite
2) as it is implemented right now, it basically replaced the phpunit command! :)