Use asynchronous file processing

Totally unneccessary conversion to node's asynchronous file system calls.
Use better standard for processed file name extensions.