Erlang module for managing temporary files