Capture the exception in mkpath

eval() is not the same as eval{}.

Fixes #306.
Merge pull request #313 from piojo/symlink-fix

ncm-symlink: Capture the exception in mkpath