fixed problem with opening absolute pathnames