Create parent directory of $logpath