Enhanced system() for ruby