[minor] Allow directory resolving for pagelets.