Only touch the packages directory if it already exists

...otherwise it would previously create a file which would obstruct
future installations.