Use fs methods instead of exec calls in document loader