fix classpath and runtime path generation