changing the way check completion is checked to accomodate for windows.