Fix warnings from lt-user-dir and move windows mkdir fix to where it's needed

Windows mkdir fix was in 3cae442
Fix get-data-path and use it

Back to no warnings