composer: several fix to the composion of RPM

When I create the function SwirlFile.isExecutable() I broke several if.
This is now fixed