Fix the path problem by running a script to set path once.
Removed all addpath commands within scripts. Use set_search_path.m once instead.