Bugfix: extract extension using the last part after the last .