fix determination of version path in cap deploy script