Check if file exists when try to fix extension