Fix implementation of `+documentDirectory`