fix wrong curdir in build process