Set src directory macro and check for path set

Signed-off-by: Alberto Corona <albcoron@gmail.com>