Remove unneeded absolute pathnames from the arguments to open()