playing safe: only load scripts if they really do exist