checks for bat, jar and exe