fixing directory permsissions issue

Some confusion about owner/user has been resolved, as well as voodoo coding in that we are using inline resources instead of thinking it may break things.