runScript: replace platform-dependent logic with File.seperator