make sure pkg dir exists