Added recursive search for opening file