qmmp: SED replaces only once

Check each target file before editing it whether sed script is
already applied on it or not.  This saves original file with
.bak suffix.
qmmp: Remove line ending space