Fix regex to match just the last part of file extension