Fixes for packaging rcs

This fixes the version code to work properly with RCs for PE builds, as well as making sure directories exist before we try to use them, and correctly doing recursive copies.