Sys_DefaultBasePath no longer exists @redsaurus, not even on windows.
Why did you put this back here?
Check for a valid homepath here not valid basepath.