Imitate node basics functions (fs, util ...) for server to client portability