[CP-7391] Ensure new directories are created when copying binaries

Signed-off-by: Ben Chalmers <Ben.Chalmers@citrix.com>