Enhanced to make the credentials file owner/group configurable - issue #4