Adjusting to directory changes