[BUGFIX] ACL file permissions do not work correctly
[BUGFIX] ACL file permissions do not work correctly

When setting file permissions the setting of ACL would succeed but
the set permissions did not work as expected. This changes fixes that.

In addition it makes the calls in a chain so that the check for the
return value of the chmod commands is more robust. The directories
that are created are now always owned by the command line user.

Change-Id: I02d48e7cec54c374697ec6142ecbde69c666dcec
Fixes: #32499
Releases: 1.0, 1.1
Original-Commit-Hash: 0d40353066e08a231388cd6127a0d7859809dbbe

robertlemke/flow-development-collection,daniellienert/flow-development-collection,kdambekalns/flow-development-collection,dfeyer/flow-development-collection,kitsunet/flow-development-collection,chewbakartik/flow-development-collection,albe/flow-development-collection,aertmann/flow-development-collection,albe/flow-development-collection,robertlemke/flow-development-collection,daniellienert/flow-development-collection,fcool/flow-development-collection,neos/flow-development-collection,robertlemke/flow-development-collection,aertmann/flow-development-collection,chewbakartik/flow-development-collection,kitsunet/flow-development-collection,kdambekalns/flow-development-collection,bwaidelich/flow-development-collection,kitsunet/flow-development-collection,kdambekalns/flow-development-collection,gerhard-boden/flow-development-collection,neos/flow-development-collection,dfeyer/flow-development-collection,aertmann/flow-development-collection,mkeitsch/flow-development-collection,fcool/flow-development-collection,dfeyer/flow-development-collection,gerhard-boden/flow-development-collection,dlubitz/flow-development-collection,mkeitsch/flow-development-collection,neos/flow-development-collection,mkeitsch/flow-development-collection,bwaidelich/flow-development-collection,chewbakartik/flow-development-collection,neos/flow-development-collection,albe/flow-development-collection,fcool/flow-development-collection,gerhard-boden/flow-development-collection,dlubitz/flow-development-collection,bwaidelich/flow-development-collection,dfeyer/flow-development-collection,dlubitz/flow-development-collection,daniellienert/flow-development-collection,kdambekalns/flow-development-collection,fcool/flow-development-collection,robertlemke/flow-development-collection