close_file_descriptors: handle . and ..