#1028 App.kv_directory does not work

Fix for #1028