Quick fix for canonicalise directory