Permfix

A small but important fix for permissions to the directories and files. 
Previously the were world-readable.