fixed the pubdir bug when serving static via node, introduced during the refactoring