activate script path check fixed for unix and linux