New version, using internal ruby commands and fixed location of onelab.py