Use explicit imports with System.Directory.

Needed to build with older versions.
Removed FromJSON, ToJSON instances for [String].