Handle install directories with package key too.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>