fixes semantic error that would create a file in the samedir on call to touch_file()