For a while, apm was broken for me. Turned out there were two typos in the script which caused /bin/sh to abort while parsing the script (unterminated quotes). Patch included, tested, and working.
Created attachment 130473 [details] patch to fix syntax errors in apmscript
Patch applied, built for rawhide.