Add readDir primop