create_symlinks: extract common code to function
Merge pull request #6 from temoto/patch-6

create_symlinks: extract common code to function