File cache listdir understands '.' and '..' (fixes #414)

Can't go outside of basedir, though. (Good.)