Add configurable permissions for files and directories
fileops.py: Fix hard coded mode in snakeoil_ensure_dirs() call