use stat instead of lstat to accept symbolic links

This is a fix to make grunt tasks follow symbolic links instead of treating them like a second class citizens.