changing relative paths to os.join