Adapted to nil arg in rpm 4.17
Moved main body to special function mainProgram. If the arg are present,
then the mainProgram is called as usually (so it should be backward
comaptible with previous scriptlets) if arg is not present, then nothing
happens. User of arg-less environemnt, have to call mainProgram manually