Let run-cmd handle Java.io.File objects too.