Enable dest/path as a function

This enable passing a callback to *path* options which is really helpful to create a path based on runtime configuration.