fix file extension regex