Fixed #If when used by addScript or addFile