converted the chmod command to run the unix process as the file utils seems to struggle on my raspberry pi