Fixed bug in getAttrsAtDir extension.