fix regexp and compare_versions