Changed: use async glob to build the post/page lists
Fixed: only do a sync stat call when necessary