Make sure leading dirs are in place for symlinks
Check for dir existence before trying to makedirs