fixes to rpm script
scripts separated into files