update sample to be "scratchable" and prevent package paths to be added multiple times