Update bd_rate.m to run from any directory.