Fix path and permissions for Torch

Change-Id: Iaba01d891665fcf3add7d1621715ac79b11ab9a9