Fixed the sxiv workaround to handle spaces and be more POSIX compliant.