Added -i and -o and handling absolute file paths