Set "$SOURCE_DIRECTORY" environment variable and update scripts to use it rather than hard-coded path-segments