Replaced function to get file extension