updated gem files
added checks for bat