add period before basename so we make sure file found is the newly named one