Fixed parsing of -l=<name> and -L=<name> options, replaced some deprecated Path code.