Fix/master/rsync command install first

This is an attempt to resolve #3415 (could resolve #3327 actually).
Please tell me if there is conception/code issues, I'm quite new to ruby and its ecosystem :)