Resolve symbolic link in self-update command

I'm using composer as a symbolic link to the composer.phar. When I update it the link will be overwritten by the new version not the original composer.phar. The PR fixes this issue.