_get_dir_url() may be called without a path