properly build content and locale directories