Removed security flaw

Changing ownership of random directories is dangerous.