Fix isUpToDate for sub packages