use good old chmod as another attempt to work around #11