fix dir bug and change some build command