time_dir makes sure that removed time_ and .[rR] are pre/suffixes.