Don't try to run flymake if directory is not writable

Patch adapted from https://github.com/illusori/emacs-flymake/commit/993c299b0791162a11c5a08b1a8cef31bc61d442
Merge branch 'master' of https://github.com/akaihola/flymake-python