fix regex for really old node versions