Make OS shell commands work in Java 6