fix hangup on install due to readdirp in large dirs