pybuildd: ensure that the build and logs dir have the correct permissions