Fix installation chmod issue

If installation is performed without the executable for chmod being on the PATH (not outside
of the realms of possibility), the current installation fails. To correct, use the Python
os.chmod function.