989627 - dont use rstrip() to remove a file suffix.

https://bugzilla.redhat.com/show_bug.cgi?id=989627