Code default dir to match xml