Bugfix when searching through directories

When attr is not define, we shouldn't ask for details. I am not sure
why attr is not defined in some cases (symlinks for example?).


Closes #23