Fix building directory