Add simple magic for using scripts within a source tree

Signed-off-by: Hao Liu <hliu@redhat.com>