Remove the use of one function when determining lambda permissions
When combined with the try function, this caused Terraform to mark the result as computed when using Terraform v1.5.7
This doesn't affect Terraform v1.6.1 or above however, the change was made to allow some capability with older versions of Terraform
Fix issue where the script didn't correctly sync objects which contained spaces in the file path
Special thanks to @heftyzauk for identifying and fixing the issue.