ghostly: Fix -o output logic