Revert "Revert "Some modification for not_if, need full path to function correctly""

This reverts commit 0e2ee816a1041b3e5e2531b5d2e8d2ff82a458b4.