paths accepts function that returns paths

Currently there is no way to add an extra path in addition to the directory of the source file. Allowing function as a option will solve that.