Add check for file extension (#443)