Fixed HTML file export and select sdcard from preferences