create pkg dir if it doesn't exist