Throw Exception if chmod is deficient

Throw Exception if needed files have not the right chmod