Figured out a work around to keep the sub directory named sub, in the prepare script, I mv the directory to a temp name, then rename it back