Fixed the rake copying of directories.