fix potential issues with relative paths