Restore spec/Procfile functionality

This is a fix for issue #1258, as described in that issue description. I realize this is probably not the fix you want, so if you point me in the direction of a better fix, I'm happy to take a stab.