if (buffer-name) is nil, use default-directory
Merge pull request #59 from Wilfred/master

Fix crash in projectile-find-file from magit