Manage dots

Filenames cannot start with a dot. I appended 'file' if it starts with a dot.