This relative path is effectively docroot of our code; Wouldn't it be more readable if we changed $dir . '../../../' into something like $baseDir ?