Fixes for Ubuntu: template file generation, diectory permission fix

$ ls /var/lib/openstack-dashboard
secret_key