split paths on windows machines in the right way

I run a Rails app on a JBoss 7 where the ojdbc6.jar file is located in the modules directory. So I set the path environment variable to that modules path (like jboss-7.1\modules\com\oracle\ojdbc6\main). 

But I wondered why the ojdbc6.jar file was found on my local linux machine but not on the windows production system. So I found the split bug (see commit). Perhaps there is a better way to detect wheter we are on a windows like machine ...