[BUG] Use path module and __dirname for relative path to cert