Update 50-file.js

Need to handle 'file not found' and other errors gracefully; the current setup kills the flow and leaves the client hanging if any problems are encounted.
fixed file node
fixed line endings