Fix excluding target dirs from backups on OSX
Fix excluding target dirs from backups on OSX

This fixes an accidental regression from #6880 identified in #7189 by
moving where the configuration of backup preferences happens since it
was accidentally never happening due to the folder always having been
created.

tsurai/cargo,rustyhorde/cargo,eminence/cargo,vojtechkral/cargo,rust-lang/cargo,nipunn1313/cargo,tshepang/cargo,vojtechkral/cargo,rust-lang/cargo,tsurai/cargo,rustyhorde/cargo,tsurai/cargo,rust-lang/cargo,eminence/cargo,tshepang/cargo,tshepang/cargo,eminence/cargo,tsurai/cargo,tsurai/cargo,nipunn1313/cargo,eminence/cargo,nipunn1313/cargo,rustyhorde/cargo,tshepang/cargo,rust-lang/cargo,nipunn1313/cargo,vojtechkral/cargo,vojtechkral/cargo,rustyhorde/cargo