Wrapped isWindows around the code that kept killing at in linux through listview