Use sudo only for system files

This pull-request fixes #5