check for symlinks before trying to create dirs