remove obsolete chmod from Dockerfiles, fix script permissions

along with the recent executable flag handling, this commit cleans up the Dockerfiles and sets missing file permissions in some test scripts.