Adds code to makedirs to dest file