Add expand_path workaround and comment to explain it.