Mock: output a single file for library data

It is better to write only 1 file instead of many files that pollute
the directory.

Resolves-bug: https://github.com/sebhtml/ray/issues/124
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>