Follow symlinks on dump-autoload command

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