Add optional support for graceful-fs

Use graceful-fs if it's available.