Make sure path to the directory with link to be created exists before using it.