Follow symlinks on dump-autoload command

Added the ```followLink()``` requested in Issue #4794.