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.
Merge pull request #1403 from matthewrmshin/fix-file-install-rsync-dir-with-sub-dir

file install: rsync: fix sub-dir handling