fix classpath and conf dir problem