pbv: single parameter: detect file extension