reverse paths and add ruby path