Fix bakefile generation error on win/linux platforms.