fixup working directory and preconfigure stuffs