Index: /issm/trunk-jpl/src/m/os/issmdir.m
===================================================================
--- /issm/trunk-jpl/src/m/os/issmdir.m	(revision 20381)
+++ /issm/trunk-jpl/src/m/os/issmdir.m	(revision 20382)
@@ -7,4 +7,5 @@
 %Initialize output ISSM_DIR
 ISSM_DIR='';
+slash=filesep();
 
 %Get ISSM_DIR from function path (we do not want to force users to edit their bashrc)
@@ -12,9 +13,9 @@
 
 %issmdir might be in bin,
-pos=strfind(path,'bin/issmdir.m');
+pos=strfind(path,['bin' slash 'issmdir.m']);
 if ~isempty(pos),
 	ISSM_DIR=path(1:pos-1);
 else
-	pos=strfind(path,'src/m/os/issmdir.m');
+	pos=strfind(path,['src' slash 'm' slash 'os' slash 'issmdir.m']);
 	if ~isempty(pos),
 		ISSM_DIR=path(1:pos-1);
