compute base relative to the current working dir