Handle link
Handle chdir and convert relative paths to absolute paths