fix configure options and build_dir path