Reduce files scope of #directory() test (Fix #438)