fixed dirchanged to correctly check non-local relative paths.