fix classpath resolution especially for windows