Proper checks for files (taking symlinks and devnodes into account) with Walk