Updating scripts to autoconfigure paths