Make document root dynamic
Make log dirs dynamic