Fixed problem in pre-configure of build script