Convert jar links to directory links