revert isLocal metod and use downloads instead to decide when cache packages.