fix dir issue upon build