Handle X-BEM-Dir header within bem server