Introducing a fix when sudo is the simulated root. Sudo is used because fakeroot is broken on Mac OS X Yosemite and fakeroot-ng only works on Linux