Fix default root dir permission

- Change root directory permission from 744 to 755
- Additionally rearrange package placements of config related functions.