Use basename

running track now just uses the basename instead of the full path. This
is important because we are comparing it to the string "track".