Fixed classpath issues for remote JVMs + jar mode