Use window.location instead of root directory to determine test system