file install: rsync: fix sub-dir handling

File install rsync mode was failing if source is a directory with
sub-directories. This was due to an incorrect cast of the access mode.

Fix #1401.