fixes #6660 - create rpm-state if missing

(cherry picked from commit 1eacced1a3a1f3413cd2a3cca7315c7c3333b587)
refs #5190 - updating dependency on apipie-rails

(cherry picked from commit 311283c79257fe29e051df84ffe42f1aac699381)