Fix setBasename for LocalDirectory