Support trailing / in files