Remove all the setting permissions, chmod does the job now
Try and simplify the call to chmod