io.files: add with-cd. Related to #1214.