fix detection of python and ruby