Fix ssh dir mode