remove pkg dir when rebuilding