Check for local function calls from same module augmentations

This fixes #27 and opens a more elegant solution for #26