Bug fix: BASE is incorrect on Windows