fix basefile for windows

@papertigers