Rename linkedPath var to linkedDir