Fix bug when space is in package dependency.