Supporting . when setting document root