Error: (void-function f-dirname)

Since today I get an `Error: (void-function f-dirname)` error when I
start flycheck. The accompanying patch fixes this problem for me.