module: don't require fs several times

As we are going to need fs in any case, just require it at the
beginning of the file.