Only validate directory when not just bundling.