RootStock-NG: card script: rearrange common things

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>