Opening an empty file is sufficient to get Stata to change directory