Resolve symbolic link for selfupdate

When you have a symbolic link for composer.phar (for example composer.phar -> composer) and call "composer selfupdate", the symbolic link is replaced by the updated composer.phar.

This change resolves the symbolic links until a "real" file is found.