Fixing the global auto completion sourcing to
check if the directory actually exists first