Apply singleton pattern to Filesystem.