Added check for existence of optional shader files