Creation of cardfiles in correct directories