misc fixes & use graceful-fs