Avoid using commons-io dependency