Updating the path for directory