Fixed: File installer failed to set mode and owner when using sudo

File installer failed to set mode and owner when using `sudo` because these actions were applied to the `/tmp/sprinkle_...` instead of the actual destination.

Run the test without my second commit to see the failing test.