Added missing require(fs), fixed style error'