create /dff before writing file. So empty sd card would work

This fix a crash with empty sd cards