Write exports into subdirectories